package com.yycwxt.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
import java.time.LocalDateTime;


@Data
@TableName("glb_shop")
public class Shop {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ExcelProperty("编码")
    @Length(min = 4, max = 6, message = "编码长度为4-6")
    private String code;

//    @NotNull
//    @NotBlank(message = "name不能为空")
    @ExcelProperty("拼音")
    private String pinyin;

    @NotNull(message = "name不能为空")
    @NotBlank(message = "name不能为空")
    @Length(min = 1, max = 20, message = "编码长度为1-20")
    @ExcelProperty("名称")
    private String name;

//    @NotNull
//    @NotBlank(message = "name不能为空")
    @ExcelProperty("全名")
    private String fullname;

    @NotNull(message = "platform不能为空")
    @NotBlank(message = "platform不能为空")
    @ExcelProperty("平台")
    private String platform;

    @NotNull(message = "type不能为空")
    @NotBlank(message = "type不能为空")
    @ExcelProperty("店铺类型")
    private String type;

//    @NotNull(message = "type不能为空")
    @ExcelProperty("是否分摊增值税")
    private String tax;

    @ExcelProperty("免分摊截至月份")
    private LocalDateTime endmoneth;

    @ExcelProperty("备注")
    private String remark;

//    @ExcelProperty("创建日期")
//    private LocalDateTime created;

//    public interface Save{
//
//    }
//
//    public interface Update{
//
//    }
}
